<?php
namespace Realisation;

use Model\Processor\ProcessorInterface;
use Model\Process\ProcessInterface;
use Model\Entity\Url;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;

/**
 * Description of Processor
 *
 * @author pahhan
 */
class Processor implements ProcessorInterface, LoggerAwareInterface
{
    /**
     * @var Url
     */
    protected $url;

    /**
     * @var LoggerInterface
     */
    protected $logger;

    function __construct(Url $url)
    {
        $this->url = $url;
    }

    public function execute(ProcessInterface $process)
    {
        $process->run($this->url);
    }

    public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
}

